﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel;

namespace eCashDatalayer
{
    public class DeliveryModel : INotifyPropertyChanged
    {

        public event PropertyChangedEventHandler PropertyChanged;

        private int _iDeliverytypeID;
        private string _sDeliveryfullname;

        /// When the Property is changed from the PL this gets Fired
        /// </summary>
        /// <param name="property"></param>
        private void OnPropertyChanged(String property)
        {


            if (PropertyChanged != null)
            {
                PropertyChanged(this, new PropertyChangedEventArgs(property));
            }
        }

        public int iDeliverytypeID
        {

            get
            {
                return _iDeliverytypeID;
            }
            set
            {
                _iDeliverytypeID = value;

                OnPropertyChanged("iDeliverytypeID");

            }
        }
        public String sDeliveryfullname
        {

            get
            {
                return _sDeliveryfullname;
            }
            set
            {
                _sDeliveryfullname = value;

                OnPropertyChanged("sDeliveryfullname");

            }
        }
    }

}